package com.gl.emms.whale.app;






/**
 * 
 * @version 1.0
 */
public interface Constant { 


	// APP_ID 替换为你的应用从官方网站申请到的合法appId
	public static final String APP_ID = "wx438e587e7e536511";

	/** 商家向财付通申请的商家id */
	public static final String PARTNER_ID = "1900000109";


	public static final String SAVE_USER = "systemsettings";//保存用户信息的xml文件名
	public static final String SAVE_USERINFO = "userinfo";//保存用户信息的xml文件名
	//服务端web地址
	public static final String SERVER_URL = "http://192.168.0.100/ichat-server";
	public static final String SERVER_DOMAINNAME = "ganlinux.eicp.net";
	//服务端IP地址
	// public static final String CIM_SERVER_HOST = "192.168.0.100";
	public static final String CIM_SERVER_HOST = "114.249.221.225";
	//注意，这里的端口不是tomcat的端口，CIM端口在服务端spring-cim.xml中配置的，没改动就使用默认的23456
	public static final int CIM_SERVER_PORT = 9016;
	//public static final int CIM_SERVER_PORT = 9015;
	//public static final int CIM_SERVER_PORT = 23456;
	public static interface MessageType{


		//用户之间的普通消息
		public static final String TYPE_0 = "0";


		//下线类型
		String TYPE_999 = "999";
	}


	public static interface MessageStatus{

		//消息未读
		public static final String STATUS_0 = "0";
		//消息已经读取
		public static final String STATUS_1 = "1";

	}

	//功能码
	public static final String TYPE_REGISTER_RESPONSE = "register_response";//注册响应
	public static final String TYPE_REGISTER_LOGIN = "login_response";//登陆响应

	public static final String CODE_REGISTER = "register_code";//注册成功
	public static final String CODE_LOGIN = "login_code";//注册成功

	//注册码register_code
	public static final String REGISTER_SUCCESS = "000000";//注册成功
	public static final String REGISTER_USERNAMEREPEAT = "000002";//注册失败，用户名重复
	public static final String REGISTER_ROOMREPEAT = "000003";//注册失败，房间被注册过
	public static final String REGISTER_CARDWRONG = "000004";//注册失败,卡号错误
	public static final String REGISTER_VERRIFICATIONCODEWRONG = "000005";//注册失败,验证码错误
	//登陆码login_code
	public static final String LOGIN_SUCCESS = "000000";//登陆成功
	public static final String LOGIN_USERLOGINREPEAT = "000002";//登陆失败，用户名错误
	public static final String LOGIN_FAIL = "000003";//登陆失败，户重复登陆
	
}
